package xuegao.study.mall.gateway.feign;

import org.springframework.web.bind.annotation.GetMapping;
import reactivefeign.spring.config.ReactiveFeignClient;
import reactor.core.publisher.Mono;
import xuegao.study.mall.common.api.CommonResult;

import java.util.List;
import java.util.Map;

@ReactiveFeignClient(name = "study-mall-admin", path = "/admin")
public interface RoleService {

    @GetMapping("/role/initResourceRolesMap")
    Mono<CommonResult<Map<String, List<String>>>> initResourceRolesMap();
}
